package sn.gandal.mobile.kalpet.data.entities;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.os.Parcel;
import android.os.Parcelable;


@DatabaseTable(tableName="account")
public class Account{
	
public static final String NOM_FIED_NAME="NOM";
public static final String PRENOM_FIED_NAME="PRENOM";
	
@DatabaseField(generatedId=true, columnName="ID")
public int id;
@DatabaseField
public String idExterne;
@DatabaseField(canBeNull = false, columnName=NOM_FIED_NAME)
public String nom;
@DatabaseField(canBeNull=false, columnName=PRENOM_FIED_NAME)
public String prenom;
@DatabaseField(columnName="ADRESSE")
public String adresse;
@DatabaseField(canBeNull=false, columnName="SEXE")
public String sexe;
@DatabaseField(columnName="TEL")
public String tel;
@DatabaseField(columnName="ENABLED")
public boolean enabled;
@DatabaseField(columnName="TYPE")
public String type;
@DatabaseField(columnName="DATE_CREATED")
public Date dateCreated;
@DatabaseField(columnName="LAST_UPDATED")
public Date lastUpdated;

@DatabaseField(columnName="CNI")
public String cni;





public Account() {
	
}



public int getId() {
	return id;
}



public String getIdExterne() {
	return idExterne;
}



public void setIdExterne(String idExterne) {
	this.idExterne = idExterne;
}



public String getPrenom() {
	return prenom;
}



public void setId(int iD) {
	id = iD;
}



public String getNom() {
	return nom;
}



public void setNom(String nOM) {
	nom = nOM;
}



public void setPrenom(String pRENOM) {
	prenom = pRENOM;
}



public String getAdresse() {
	return adresse;
}



public void setAdresse(String aDRESSE) {
	adresse = aDRESSE;
}



public String getSexe() {
	return sexe;
}



public void setSexe(String sEXE) {
	sexe = sEXE;
}



public String getTel() {
	return tel;
}



public void setTel(String tEL) {
	tel = tEL;
}



public boolean getEnabled() {
	return enabled;
}



public void setEnabled(boolean eNABLED) {
	enabled = eNABLED;
}



public String getType() {
	return type;
}



public void setType(String tYPE) {
	type = tYPE;
}



public Date getDateCreated() {
	return dateCreated;
}



public void setDateCreated(Date dATE_CREATED) {
	dateCreated = dATE_CREATED;
}



public Date getLastUpdated() {
	return lastUpdated;
}



public void setLastUpdated(Date lAST_UPDATED) {
	lastUpdated = lAST_UPDATED;
}



@Override
public String toString() {
	return "Account [ID=" + id + ", NOM=" + nom + ", PRENOM=" + prenom
			+ ", ADRESSE=" + adresse + ", SEXE=" + sexe + ", TEL=" + tel + "]";
}

public String getCni() {
	return cni;
}



public void setCni(String cni) {
	this.cni = cni;
}


}
